{% extends "menu.html" %}
{% block content %}

        <!-- page content -->
        <div class="right_col" role="main">
          <div class="">
            <div class="page-title">



            </div>
            <div class="clearfix"></div>
            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>管理用户</h2>

                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">
                    <br />
                    <table class="sui-table table-bordered">
  <thead>
    <tr>
        <th>id</th>
        <th>用户名</th>
        <th>中文名</th>
        <th>授权项目</th>
        <th>授权访问</th>
        <th>是否为管理员</th>
        <th>管理</th>
    </tr>
  </thead>
  <tbody>
  {% for i in userlist %}
    <tr>

        <td>{{ i.id}}</td>
        <td>{{ i.user_name }}</td>
        <td>{{ i.user_name_cn }}</td>
        <td>{{ i.project }}</td>
        <td>{{ i.user_url}}</td>
        {% if i.user_admin == "1" %}
        <td><span style="color: red">是</span></td>
        {% else %}
            <td>否</td>
        {% endif %}
        <td><a href="/user/userdel/?id={{ i.id }}" class="label label-danger">删除</a> <a href="/user/userupdate/?id={{ i.id }}"><span class="label label-info">更新</span></a></td>
    </tr>
{% endfor %}
  </tbody>
</table>
                  </div>
                </div>
              </div>
            </div>


          </div>
        </div>
{% endblock %}